package main

import (
	mes "chapter05_homework/merge_string"
	"chapter05_homework/rand3_number"
	"chapter05_homework/rand_abc"
	"fmt"
)

func main() {
	//第一题
	rand3_number.Answer(rand3_number.Rand3n())
	//第二题
	var letter_l int = 5 //定义一个随机字符串长度影响因素
	letter, err := rand_abc.Abc(letter_l)
	if err != nil {
		panic(err)
	}
	fmt.Printf("你带入参数是%d,得到的字符串是: %s\n排序后的结果是: %s\n", letter_l, letter, rand_abc.Stletter(letter))
	//第三题
	var ms1 string = "abcdeopqrstuvw"
	var ms2 string = "xyzfghijk"
	ms := mes.MergeString(mes.CreateByteSlice(ms1, ms2))
	fmt.Printf("%s,%s ==> %s", ms1, ms2, ms)
}
